From ecea19974e8ef56bda053ba1f09b68f387d37a0e Mon Sep 17 00:00:00 2001 From: robertl Date: Mon, 3 Mar 2008 18:07:37 +0000 Subject: [PATCH] Don't send non-alphanumeric chars to geriatric Garmins. Fixes GPS Streetpilot III. --- gpsbabel/jeeps/gpsapp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gpsbabel/jeeps/gpsapp.c b/gpsbabel/jeeps/gpsapp.c index 6333fb555..651ed61e3 100644 --- a/gpsbabel/jeeps/gpsapp.c +++ b/gpsbabel/jeeps/gpsapp.c @@ -124,6 +124,7 @@ void copy_char_array(UC **dst, char* src, int count, copycase mustupper) int ocount = count; do { UC sc = *src++; + if (!isalnum(sc)) continue; if (sc == 0) { while (count--) *d++ = ' '; -- 2.30.2